package com.jaws.demo.common.batch;

import com.jaws.demo.vo.AccountInfo;
import org.springframework.batch.item.validator.ValidatingItemProcessor;
import org.springframework.batch.item.validator.ValidationException;

/**
 * CVS 处理器
 *
 * @author liangqm
 * @date 2018-04-19 8:23:19
 * @since v1.0.1
 */
public class CsvItemProcessor extends ValidatingItemProcessor<AccountInfo> {

	@Override
	public AccountInfo process(AccountInfo item) throws ValidationException {
		// 需要执行super.process(item)才会调用自定义校验器
		super.process(item);
		// TODO: 2018/4/24 数据校验
		return item;
	}
}  